package io.gitee.wminyu.day02;

import javax.net.ssl.SSLContext;

public class randomMonth {
     public static void main(String[] args){
         int  month = (int) Math.floor(Math.random()*12)+1;
         System.out.println(month);
//         switch (month){
//             case 1: System.out.println("一月");break;
//             case 2: System.out.println("二月");break;
//             case 3: System.out.println("三月");break;
//             case 4: System.out.println("四月");break;
//             case 5: System.out.println("五月");break;
//             case 6: System.out.println("六月");break;
//             case 7: System.out.println("七月");break;
//             case 8: System.out.println("八月");break;
//             case 9: System.out.println("九月");break;
//             case 10: System.out.println("十月");break;
//             case 11: System.out.println("十一月");break;
//             case 12: System.out.println("十二月");break;
//         }
         String[] names = {" ","一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"};
         System.out.println(names[month]);
     }
}
